package com.exampleyyy.demoyyy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.view.RedirectView;
@RestController
@RequestMapping("")// 接收的是GET  http://8.130.48.71:8081
public class maincontroller {
    @GetMapping("")
    public RedirectView  return_index(){
        // RedirectView 重定向
        // 返回 登录页面
        return  new RedirectView("/front/index.html");
    }
}